require 'rubygems'
require 'JSON'
require 'net/http'


url = "/butterfly/_design/butterfly"
http = Net::HTTP.new("localhost", 5984);


http.start {|http| 

  testurl = url + "/_list/georss/all"
  resp = http.request( Net::HTTP::Get.new(testurl));
  p resp.body
  
  testurl = url + '/_list/single/all?key="test"';
  resp = http.request( Net::HTTP::Get.new(testurl));
  p resp.body
  
  testurl = url + '/_view/tags';
  resp = http.request( Net::HTTP::Get.new(testurl));
  p resp.body
  
  testurl = url + '/_list/tags/tags';
  resp = http.request( Net::HTTP::Get.new(testurl));
  p resp.body
}


